#ifndef PROFILECONFIGURE_H
#define PROFILECONFIGURE_H

#include "ui_ProfileConfigure.h"
#include "lib/profile.h"
#include <QMessageBox>

class ProfileConfigure: public QDialog, public Ui::ProfileConfigure{
    Q_OBJECT
    public:
	ProfileConfigure(QWidget * parent = 0);
	void set(Profile * newProfile);
	void fromOptions(QAbstractButton *button, QString optionName, bool flag = true);
	void toOptions(QAbstractButton *button, QString optionName, bool flag = true);
	void apply();
    public slots:
	void on_buttonBox_accepted();
	void on_buttonBox_rejected();
    private:
	Profile * profile;
};


#endif